<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>hostManager login</title>
    
	<c:set value="${pageContext.request.contextPath}" var="path1" scope="page"/>
	
    <!-- Bootstrap Core CSS -->
    <link href="${path1}/static/css/bootstrap.min.css" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="${path1}/static/css/plugins/metisMenu/metisMenu.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="${path1}/static/css/sb-admin-2.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="${path1}/static/font-awesome-4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body>
<div class="error">${error}</div>

<form action="" method="post">
    <div class="container">
        <div class="row">
            <div class="col-md-4 col-md-offset-4">
                <div class="login-panel panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">Please Sign In</h3>
                    </div>
                    <div class="panel-body">
                        <form role="form">
                            <fieldset>
                                <div class="form-group">
                                    <input class="form-control" placeholder="UserName" name="username" type="text" value="" autofocus>
                                </div>
                                <div class="form-group">
                                    <input class="form-control" placeholder="Password" name="password" type="password" value="">
                                </div>
                                <div class="form_group">
                                    <div class =row>
                                    <c:if test="${jcaptchaEbabled}">

                                        <div class="col-md-6">
                                        <input class="form-control" placeholder="Verification code" name="jcaptchaCode" type="text" >
                                        </div>
                                        <div class ="col-md-3">
                                    <img class="jcaptcha-btn jcaptcha-img"
                                        src="${pageContext.request.contextPath}/jcaptcha.jpg" title="Verification" >
                                        </div>
                                        <div class="col-md-3">
                                     <a class="jcaptcha-btn" href="javascript:;">換一張</a>
                                     </div>
                                 </c:if>
                                 </div>
                                </div>
                                <div class="checkbox">
                                    <label>
                                        <input name="remember" type="checkbox" value="Remember Me">記住我
                                    </label>
                                </div>
                                <!-- Change this to a button or input when using this as a form -->
                          
         								<input  class="btn btn-lg btn-success btn-block" type="submit" value="Login">
         							<!--  <a href="index.html" class="btn btn-lg btn-success btn-block">Login</a>-->
                            </fieldset>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </form>

    <!-- jQuery -->
    <script src="${path1}/static/js/jquery.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="${path1}/static/js/bootstrap.min.js"></script>

    <!-- Metis Menu Plugin JavaScript -->
    <script src="${path1}/static/js/plugins/metisMenu/metisMenu.min.js"></script>

    <!-- Custom Theme JavaScript -->
    <script src="${path1}/static/js/sb-admin-2.js"></script>

    <!--  <script src="${path}/static/js/jquery-1.11.0.min.js"></script>-->

  <script>
    $(function() {
        $(".jcaptcha-btn").click(function() {
            $(".jcaptcha-img").attr("src", '${pageContext.request.contextPath}/jcaptcha.jpg?'+new Date().getTime());
        });
    });
</script>

</body>

</html>